import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.util.AntPathMatcher;

public class PasswordEncoder {
 
    public static void main(String[] args) {
//	org.springframework.security.crypto.password.PasswordEncoder encoder = PasswordEncoderFactories.createDelegatingPasswordEncoder();
//	String password = "cloud4g";
//	String password2 = encoder.encode(password);
//	System.out.println(password2);
//        System.out.println(encoder.matches(password, password2));
//
//        BCryptPasswordEncoder encoder2 = new BCryptPasswordEncoder();
//        String password3 = encoder2.encode(password);
//        System.out.println(password3);
//        System.out.println(encoder2.matches(password, password3));
    AntPathMatcher antPathMatcher = new AntPathMatcher();
        System.out.println(  antPathMatcher.match("/sys/dept/info**", "/sys/dept/info/1?_=1539064422360"));

    }
 
}